class SurpriseRenderer extends eui.ItemRenderer {
    private surpriseGroup:eui.Group;
    private bigLabel:eui.Label;
    private smallLabel:eui.Label;
    private bigLineImage:eui.Image;
    

    public constructor(){
        super();
        this.surpriseGroup=new eui.Group();
        this.bigLabel=new eui.Label;
        this.smallLabel=new eui.Label();
        this.bigLineImage=new eui.Image();

        this.surpriseGroup.addChild(this.bigLabel);
        this.surpriseGroup.addChild(this.smallLabel);
        this.surpriseGroup.addChild(this.bigLineImage);
        this.addChild(this.surpriseGroup);
    }

    protected dataChanged():void{
        //显示数据中的 label 值
        this.bigLabel.x=44;
        this.bigLabel.y=35;
        this.bigLabel.width=662;
        this.bigLabel.height=96;
        this.bigLabel.textColor=798553;
        this.bigLabel.size=32;
        this.bigLabel.text=this.data.biglabelText;
        this.smallLabel.x=42;
        this.smallLabel.y=133;
        this.smallLabel.width=662;
        this.smallLabel.height=72;
        this.smallLabel.textColor=798553;
        this.smallLabel.size=34;
        this.smallLabel.text=this.data.smalllabelText;
        this.bigLineImage.source="resource/assets/SurpriseScene/line_big.png";
        this.bigLineImage.x=0;
        this.bigLineImage.y=256;
    }

    private Onclick():void{
    }
}